## CS 254  Program 3  Spring 2008
##
## Compute 13*x 
##
## Programmer: Matthew Stanton
## Date: 02-21-2008
## Status: Runs without errors
## $5 holds X
## $2 holds X*4
## $3 holds x*8
## $10 holds 13*X
ori $5, $0, 0x1; #loads a Varriable into register 5
sll $0, $0, 0;
sll $0, $0, 0;
sll $2, $5, 2; #Multiplies the contents in register 5 by 4
sll $3, $5, 3; #Multiplies the contents in register 5 by 8
sll $0, $0, 0;
sll $0, $0, 0;
addi $10, $3, 3; # Places the sum of register 2 and 3 into register 10, we now have the varriable multiplied by 12
srl $11, $5, $10; # Adds the original variable to register 10, we now have the varriable multiplied by 13